//
//  SanTableViewCell.m
//  豆瓣
//
//  Created by hy on 16/1/4.
//  Copyright © 2016年 hongyu. All rights reserved.
//

#import "SanTableViewCell.h"

@implementation SanTableViewCell




- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatCell];
    }
    return self;
}
- (void)dealloc {
    [_lanImage release];
    [_wenLable release];
    [_moiveimage release];
    [super dealloc];
}

- (void)creatCell {
    
    self.lanImage = [[UIImageView alloc] init];
    [self.contentView addSubview:_lanImage];
    [_lanImage release];
    
    self.moiveimage = [[UIImageView alloc] init];
    [self.contentView addSubview:_moiveimage];
    [_moiveimage release];
    
    self.wenLable = [[UILabel alloc] init];
    [self.contentView addSubview:_wenLable];
    [_wenLable release];
}
- (void)layoutSubviews {
    [super layoutSubviews];
    
     _lanImage.frame = CGRectMake(10, 10, self.contentView.frame.size.width - 20, self.contentView.frame.size.height - 20);
    _lanImage.backgroundColor = [UIColor clearColor];
    
    _moiveimage.frame = CGRectMake(15, 15, 100, 160);
    _moiveimage.backgroundColor = [UIColor clearColor];
    
    _wenLable.frame = CGRectMake(130, 75, 200, 50);
    _wenLable.backgroundColor = [UIColor clearColor];
    _wenLable.font = [UIFont systemFontOfSize:21];
    _wenLable.textColor = [UIColor blackColor];
    
    
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
